var winston = require('winston');
var logger = new (winston.Logger)({
  transports: [
    new (winston.transports.Console)({ json: false, timestamp: true }),
    new winston.transports.File({name: 'file.info', filename: __dirname + '/../logs/info.log', json: false,level:'info' }),
    // new winston.transports.File({name: 'file.warn', filename: __dirname + '/../logs/warn.log', json: false,level:'warn' }),
		// new winston.transports.File({name: 'file.debug', filename: __dirname + '/../logs/debug.log', json: false,level:'debug' }),
    new winston.transports.File({name: 'file.error', filename: __dirname + '/../logs/error.log', json: false,level:'error' ,handleExceptions: true}),
  ],
  exitOnError: false
});
module.exports = logger;